Once the database is created, users will log into the database with this information.
The information you provide in this panel will be used to log into the database server to create the new database. The login information you provide must be for an account that has database creation permissions.
For example, suppose your adaptor contains a date prototype that defines the value class to be NSCalendarDate and the external type to be DATE. When you create an attribute and associate it with this date prototype, the attribute's value class is dynamically resolved to NSCalendarDate and its external type is dynamically resolved to DATE. If any of the prototype information is not correct for your attribute, you can override it. Simply set the property of the attribute to the correct value. The remaining attribute properties will still dynamically resolve to the values set in the prototype.
To associate an attribute with a prototype, use the table mode of the Model Editor. In the row for your attribute, choose a prototype from the combo box in the Prototype column. (If EOModeler doesn't display the Prototype column, activate it from the Columns pull-down menu.) The prototypes in the combo box come from three places:
When resolving a prototype name, Enterprise Objects Framework looks for prototypes in EO<adaptor-name>Prototypes, then in EOPrototypes, and finally in the adaptor for your model. This search path allows you to override the prototypes provided by each adaptor. Furthermore, if you don't want to use the adaptor-defined prototypes at all, you can hide them. Create an entity named EOPrototypesToHide. For each prototype you want to hide, create an attribute with that name; you don't need to specify other attribute properties.
EOAdaptor | |
---|---|
prototypeAttributes | Returns an array of prototype attributes specific to the adaptor. |
To create a query, select an entity and then click the New Fetch Specification button (second from the right in the tool bar).
In Objective-C
aQual = [EOQualifier
qualifierWithQualifierFormat:"dateReleased = %@", aDate];
In Java
aQual = EOQualifier.qualifierWithQualifierFormat(
"dateReleased = %@", aDate);
where aDate is a variable that contains the actual date you want to query upon. When you store the qualifier in an EOModel, there is no way to know the actual value to query upon or the variable that will contain that value. The EOQualifierVariable object acts as a placeholder for the actual variable that will represent the right side of the expression. You specify an EOQualifierVariable by using a $, as in the following:
dateReleased = $aDate
For more information, see the section "Binding to Complex Qualifiers."
EOModelGroup | |
---|---|
fetchSpecificationNamed:entityNamed: (Objective-C) fetchSpecificationNamed (Java) | Returns the fetch specification identified by the provided name from the specified entity. |
Table of Contents
Next Section